<!-- 热部署:当修改了代码,会自动刷新页面,不需要手动刷新 -->
<template>
  <nav>
    <router-link to="/">Home哈哈哈</router-link> |
    <router-link to="/about">About嘻嘻嘻</router-link> | <br>
    <router-link to="/a">文本指令</router-link> |
    <router-link to="/b">属性绑定指令</router-link> |
    <router-link to="/c">事件绑定指令</router-link> |
    <router-link to="/d">循环指令</router-link> |
    <router-link to="/e">双向绑定指令</router-link> |
    <router-link to="/f">隐藏显示指令</router-link> |
    <router-link to="/g">员工列表练习</router-link> |
    <router-link to="/h">个人简历练习</router-link> |
    <router-link to="/i">猜数字练习</router-link> | <br>
    <router-link to="/j">El-按钮组件</router-link> |
    <router-link to="/k">El-图标组件</router-link> |
    <router-link to="/l">El-消息提示组件</router-link> |
    <router-link to="/m">El-单选组件</router-link> |
    <router-link to="/n">El-下拉选框组件</router-link> |
    <router-link to="/o">El-开关组件</router-link> |
    <router-link to="/p">El-表单组件</router-link> |
    <router-link to="/q">El-菜单组件</router-link> |
    <router-link to="/r">El-表格组件</router-link> |
    <router-link to="/s">El-轮播图组件</router-link> |
    <router-link to="/t">El-日期时间选择器组件</router-link> | <br>
    <router-link to="/u">El-栅格布局组件</router-link> |
    <router-link to="/v">El-容器组件</router-link> |
    <router-link to="/w">El-卡片组件</router-link> |
    <router-link to="/x">商品列表练习</router-link> |
    <router-link to="/y">员工列表练习</router-link> |
  </nav>
  <!-- 可变区域:根据路由Path展示对应的Vue组件内容 -->
  <router-view/>
</template>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

nav {
  padding: 30px;
}

nav a {
  font-weight: bold;
  color: #2c3e50;
}

nav a.router-link-exact-active {
  color: #42b983;
}
</style>
